package gui.client.panels;

import java.awt.GridBagLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JButton;
import java.awt.Rectangle;
import java.awt.Color;

public class JCustomersBarPanel extends JPanel {

	private static final long serialVersionUID = 1L;
	private JButton homeButton = null;
	private JButton profileButton = null;
	private JButton shoppingCartButton = null;
	private JButton ordersStatusButton = null;
	private JButton purchaseHistoryButton = null;

	/**
	 * This is the default constructor
	 */
	public JCustomersBarPanel() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setLayout(null);
		this.setSize(805, 47);
		this.setBackground(Color.white);
		this.add(getHomeButton(), null);
		this.add(getProfileButton(), null);
		this.add(getShoppingCartButton(), null);
		this.add(getOrdersStatusButton(), null);
		this.add(getPurchaseHistoryButton(), null);
	}

	/**
	 * This method initializes homeButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getHomeButton() {
		if (homeButton == null) {
			homeButton = new JButton();
			homeButton.setBounds(new Rectangle(7, 13, 136, 20));
			homeButton.setText("Home");
		}
		return homeButton;
	}

	/**
	 * This method initializes profileButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getProfileButton() {
		if (profileButton == null) {
			profileButton = new JButton();
			profileButton.setBounds(new Rectangle(165, 13, 136, 20));
			profileButton.setText("Profile");
		}
		return profileButton;
	}

	/**
	 * This method initializes shoppingCartButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getShoppingCartButton() {
		if (shoppingCartButton == null) {
			shoppingCartButton = new JButton();
			shoppingCartButton.setBounds(new Rectangle(330, 13, 136, 20));
			shoppingCartButton.setText("Shopping Cart");
		}
		return shoppingCartButton;
	}

	/**
	 * This method initializes ordersStatusButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getOrdersStatusButton() {
		if (ordersStatusButton == null) {
			ordersStatusButton = new JButton();
			ordersStatusButton.setBounds(new Rectangle(495, 13, 136, 20));
			ordersStatusButton.setText("Order Status");
		}
		return ordersStatusButton;
	}

	/**
	 * This method initializes purchaseHistoryButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getPurchaseHistoryButton() {
		if (purchaseHistoryButton == null) {
			purchaseHistoryButton = new JButton();
			purchaseHistoryButton.setBounds(new Rectangle(660, 13, 136, 20));
			purchaseHistoryButton.setText("Purchase History");
		}
		return purchaseHistoryButton;
	}

}  //  @jve:decl-index=0:visual-constraint="10,2"
